subscribeSuspend

open suspend override fun subscribeSuspend(): Subscription

Receive incoming messages by creating a new, dedicated socket connection. After making a subscribe request, incoming messages will be sent to the client encoded as ClientMessageWrapper. Send an unsubscribe request via Subscription.unsubscribe or disconnect from the socket via NodePersistentSocketWrapper.close to stop receiving messages.

Throws